import compression from 'vite-plugin-compression'

export default function createCompression() {
    return compression({
        ext: '.br',
        filter: (file => {
            console.info("file", file)
            return true;
        }),
        threshold: 20,
        compressionOptions: {
            level: 9
        },
        algorithm: 'brotliCompress',
        deleteOriginFile: false
    })

}
